/*
 *Programa Polinomios
 *Lenguajes de programación Grupo: 5
 *Integrantes:
   +Mora Contreras Enrique
   +Pajarito Vargas Antonio
   +Plata Silverio Víctor
   +Ríos Ferrer Kevin
 */
package programa_1_lp;

import Controlador.*;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 * The application's main frame.
 */
public class Programa_1_lpView extends FrameView {

    public Programa_1_lpView(SingleFrameApplication app) {
        super(app);

        initComponents();
        
        //grupo de botones
        grupo1.add(jrb_evaluar);
        grupo1.add(jrb_igualdad);
        grupo1.add(jrb_multiplicar);
        grupo1.add(jrb_opuesto);
        grupo1.add(jrb_restar);
        grupo1.add(jrb_sumar);

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = Programa_1_lpApp.getApplication().getMainFrame();
            aboutBox = new Programa_1_lpAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        Programa_1_lpApp.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jrb_evaluar = new javax.swing.JRadioButton();
        jrb_sumar = new javax.swing.JRadioButton();
        jrb_restar = new javax.swing.JRadioButton();
        jrb_multiplicar = new javax.swing.JRadioButton();
        jrb_opuesto = new javax.swing.JRadioButton();
        jrb_igualdad = new javax.swing.JRadioButton();
        jtf_pol1 = new javax.swing.JTextField();
        jtf_pol2 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jtf_pol3 = new javax.swing.JTextField();
        jb_realizar = new javax.swing.JButton();
        jl_msnErrorPol3 = new javax.swing.JLabel();
        jl_msnErrorPol1 = new javax.swing.JLabel();
        jl_msnErrorPol2 = new javax.swing.JLabel();
        jtf_noEvaluar = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();
        grupo1 = new javax.swing.ButtonGroup();

        jPanel.setName("jPanel"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(programa_1_lp.Programa_1_lpApp.class).getContext().getResourceMap(Programa_1_lpView.class);
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jrb_evaluar.setSelected(true);
        jrb_evaluar.setText(resourceMap.getString("jrb_evaluar.text")); // NOI18N
        jrb_evaluar.setName("jrb_evaluar"); // NOI18N

        jrb_sumar.setText(resourceMap.getString("jrb_sumar.text")); // NOI18N
        jrb_sumar.setName("jrb_sumar"); // NOI18N

        jrb_restar.setText(resourceMap.getString("jrb_restar.text")); // NOI18N
        jrb_restar.setName("jrb_restar"); // NOI18N

        jrb_multiplicar.setText(resourceMap.getString("jrb_multiplicar.text")); // NOI18N
        jrb_multiplicar.setName("jrb_multiplicar"); // NOI18N

        jrb_opuesto.setText(resourceMap.getString("jrb_opuesto.text")); // NOI18N
        jrb_opuesto.setName("jrb_opuesto"); // NOI18N

        jrb_igualdad.setText(resourceMap.getString("jrb_igualdad.text")); // NOI18N
        jrb_igualdad.setName("jrb_igualdad"); // NOI18N

        jtf_pol1.setText(resourceMap.getString("jtf_pol1.text")); // NOI18N
        jtf_pol1.setName("jtf_pol1"); // NOI18N

        jtf_pol2.setText(resourceMap.getString("jtf_pol2.text")); // NOI18N
        jtf_pol2.setName("jtf_pol2"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jtf_pol3.setText(resourceMap.getString("jtf_pol3.text")); // NOI18N
        jtf_pol3.setName("jtf_pol3"); // NOI18N

        jb_realizar.setBackground(resourceMap.getColor("jb_realizar.background")); // NOI18N
        jb_realizar.setText(resourceMap.getString("jb_realizar.text")); // NOI18N
        jb_realizar.setName("jb_realizar"); // NOI18N
        jb_realizar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jb_realizarMouseClicked(evt);
            }
        });

        jl_msnErrorPol3.setForeground(resourceMap.getColor("jl_msnErrorPol3.foreground")); // NOI18N
        jl_msnErrorPol3.setText(resourceMap.getString("jl_msnErrorPol3.text")); // NOI18N
        jl_msnErrorPol3.setName("jl_msnErrorPol3"); // NOI18N

        jl_msnErrorPol1.setText(resourceMap.getString("jl_msnErrorPol1.text")); // NOI18N
        jl_msnErrorPol1.setName("jl_msnErrorPol1"); // NOI18N

        jl_msnErrorPol2.setText(resourceMap.getString("jl_msnErrorPol2.text")); // NOI18N
        jl_msnErrorPol2.setName("jl_msnErrorPol2"); // NOI18N

        jtf_noEvaluar.setText(resourceMap.getString("jtf_noEvaluar.text")); // NOI18N
        jtf_noEvaluar.setName("jtf_noEvaluar"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        javax.swing.GroupLayout jPanelLayout = new javax.swing.GroupLayout(jPanel);
        jPanel.setLayout(jPanelLayout);
        jPanelLayout.setHorizontalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addGroup(jPanelLayout.createSequentialGroup()
                                .addGap(45, 45, 45)
                                .addComponent(jrb_evaluar)
                                .addGap(18, 18, 18)
                                .addComponent(jrb_sumar)
                                .addGap(31, 31, 31)
                                .addComponent(jrb_restar)
                                .addGap(18, 18, 18)
                                .addComponent(jrb_multiplicar)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jrb_opuesto)
                                .addGap(18, 18, 18)
                                .addComponent(jrb_igualdad))))
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addGap(46, 46, 46)
                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jtf_pol1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 643, Short.MAX_VALUE)
                            .addComponent(jtf_pol2, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jtf_pol3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 618, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jl_msnErrorPol3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 629, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelLayout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addGap(215, 215, 215)
                                .addComponent(jb_realizar))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelLayout.createSequentialGroup()
                                .addGap(146, 146, 146)
                                .addComponent(jl_msnErrorPol1, javax.swing.GroupLayout.PREFERRED_SIZE, 489, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jl_msnErrorPol2, javax.swing.GroupLayout.PREFERRED_SIZE, 503, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(12, 12, 12)
                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addComponent(jtf_noEvaluar, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jPanelLayout.setVerticalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jrb_evaluar)
                    .addComponent(jrb_sumar)
                    .addComponent(jrb_restar)
                    .addComponent(jrb_multiplicar)
                    .addComponent(jrb_opuesto)
                    .addComponent(jrb_igualdad))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_pol1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_noEvaluar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(1, 1, 1)
                .addComponent(jl_msnErrorPol1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_pol2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jl_msnErrorPol2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelLayout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelLayout.createSequentialGroup()
                        .addComponent(jb_realizar)
                        .addGap(19, 19, 19)))
                .addComponent(jtf_pol3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jl_msnErrorPol3)
                .addGap(51, 51, 51))
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(programa_1_lp.Programa_1_lpApp.class).getContext().getActionMap(Programa_1_lpView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(statusMessageLabel)
                .addGap(173, 173, 173)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 602, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup()
                        .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(statusAnimationLabel)
                        .addContainerGap())))
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(statusMessageLabel)
                    .addComponent(statusAnimationLabel)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3))
        );

        setComponent(jPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

private void jb_realizarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jb_realizarMouseClicked
/*
 * Acciones que se realizan al oprimir realizar
 */
    String x= jtf_pol1.getText(); //leyendo cadenas
    String y= jtf_pol2.getText();
    
    Polinomio poli1 =new Polinomio(x);  //construir el polinomio
    jl_msnErrorPol1.setText(poli1.mensaje);
    
    Polinomio poli2 =new Polinomio(y);
    jl_msnErrorPol2.setText(poli2.mensaje);
    
    //---EVALUAR---
    if(jrb_evaluar.isSelected() && poli1.poli!=null){
        try{
        float punto= Float.parseFloat(jtf_noEvaluar.getText());
         punto=Operaciones.evaluar(poli1,punto);
         jl_msnErrorPol3.setText(Operaciones.mensaje);
         jtf_pol3.setText(punto+"");
        }catch(NumberFormatException e){
          jl_msnErrorPol3.setText("Error al evaluar");
          jtf_pol3.setText("");
        }
    }
    else
    //---IGUALDAD---
    if(jrb_igualdad.isSelected() && poli1.poli!=null && poli2.poli!=null){
        String aux=Operaciones.igualdad(poli1, poli2);
        jl_msnErrorPol3.setText(Operaciones.mensaje);
        jtf_pol3.setText(aux);
    }
    else
    //---MULTIPLICAR---
    if(jrb_multiplicar.isSelected() && poli1.poli!=null && poli2.poli!=null) {
        poli1=Operaciones.multiplicar(poli1, poli2);
        jl_msnErrorPol3.setText(Operaciones.mensaje);
        jtf_pol3.setText(poli1.impresion);
    }
    else
    //---OPUESTO---
    if(jrb_opuesto.isSelected()&& poli1.poli!=null){
        poli1=Operaciones.opuesto(poli1);
        jl_msnErrorPol3.setText(Operaciones.mensaje);
        jtf_pol3.setText(poli1.impresion);
    }
    else
    //---RESTAR---
    if(jrb_restar.isSelected() && poli1.poli!=null && poli2.poli!=null){
        poli1=Operaciones.restar(poli1, poli2);
        jl_msnErrorPol3.setText(Operaciones.mensaje);
        jtf_pol3.setText(poli1.impresion);
    }
    else
    //---SUMAR---
    if(jrb_sumar.isSelected() && poli1.poli!=null && poli2.poli!=null){
        poli1=Operaciones.sumar(poli1, poli2);
        jl_msnErrorPol3.setText(Operaciones.mensaje);
        jtf_pol3.setText(poli1.impresion);
    }
    else{
        jl_msnErrorPol3.setText("Error falta información o no se reconoce");
    }
    
    
    // TODO add your handling code here:
}//GEN-LAST:event_jb_realizarMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup grupo1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel;
    private javax.swing.JButton jb_realizar;
    private javax.swing.JLabel jl_msnErrorPol1;
    private javax.swing.JLabel jl_msnErrorPol2;
    private javax.swing.JLabel jl_msnErrorPol3;
    private javax.swing.JRadioButton jrb_evaluar;
    private javax.swing.JRadioButton jrb_igualdad;
    private javax.swing.JRadioButton jrb_multiplicar;
    private javax.swing.JRadioButton jrb_opuesto;
    private javax.swing.JRadioButton jrb_restar;
    private javax.swing.JRadioButton jrb_sumar;
    private javax.swing.JTextField jtf_noEvaluar;
    private javax.swing.JTextField jtf_pol1;
    private javax.swing.JTextField jtf_pol2;
    private javax.swing.JTextField jtf_pol3;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
}
